package cn.sh.yhk.single;

public class SyncSingle {

    private volatile static SyncSingle syncSingle;

    private SyncSingle() {
    }

    public static SyncSingle getSingleton() {
        if (syncSingle == null) {
            synchronized (Singleton.class) {
                if (syncSingle == null) {
                    syncSingle = new SyncSingle();
                }
            }
        }
        return syncSingle;
    }
}
